import java.io.*;
import java.net.*;

public class JavaServerUDP
{
  public static void main(String[] args) throws IOException
  {
    final int MAXLEN = 100;
    byte[] buf = new byte[MAXLEN];

    DatagramSocket ds = new DatagramSocket(2000);
    DatagramPacket dp = new DatagramPacket(buf, buf.length);

    ds.receive(dp);
    ds.close();
    String s = new String(dp.getData());
    System.out.println(s);


    System.out.println("Hello");

  }


}